package com.yyfax.ph.common.imageselector.bean;

import java.util.List;

public class Folder {
	public String name;
	public String path;
	public Image cover;
	public List<Image> images;


	public Folder() {
	}

	public Folder(String path) {
		this.path = path;
	}

	@Override
	public int hashCode() {
		return path != null ? path.hashCode() : 0;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o)
			return true;
		if (o == null || getClass() != o.getClass())
			return false;

		Folder folder = (Folder) o;

		return path != null ? path.equals(folder.path) : folder.path == null;
	}

	@Override
	public String toString() {
		return "Folder{" +
				"name='" + name + '\'' +
				", path='" + path + '\'' +
				", cover=" + cover +
				", images.size=" + images.size() +
				'}';
	}
}
